package com.pingan.glue.gluegame.service;

import com.pingan.glue.gluegame.controller.form.FilmResponse;
import com.pingan.glue.gluegame.entity.AwardContentEntity;
import com.pingan.glue.gluegame.entity.FriendUserEntity;
import com.pingan.glue.gluegame.entity.GameOrderEntity;

import java.util.List;

public interface GameOrderService {


    /**
     * 保存或更新排名，并返回本周上次最好记录
     * @param entity
     * @param finishTime
     * @return
     */
    Long saveOrUpdateGameOrder(FriendUserEntity entity, Long finishTime);

    List<GameOrderEntity> queryGameOrder(int current,int size);

    int getOrder(Long finishTime);

    String calculateAward(FriendUserEntity entity, Long finishTime);

    List<FilmResponse> film();

    List<AwardContentEntity> record(String mobile);
}
